from fastapi import APIRouter, Depends

from app.api.admin.service.roler import IRolerService, RolerService
roler = APIRouter(prefix="/roler")


@roler.get("/")
async def get(roler_service: IRolerService = Depends(RolerService.instence)):
    return await roler_service.get_all()


@roler.post("/")
def create():
    pass


@roler.put("/{id:int}")
def edit():
    pass



@roler.delete("/{id:int}")
def remove():
    pass
